package hyl.base.ntty.utils.bean;

public class NetMsg implements IMsg{

    //内容长度
    protected int length;
    //内容
    protected String content; 

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public NetMsg( int length, String content) {
     
        this.length = length;
        this.content = content;
    }

    @Override
    public String toString() {
        return "{" +             
                " length=" + length +
                ", content='" + content + '\'' +
                '}';
    }
}